//package com.bitcola.chainserver.chain.trx.core;
//
//import com.tron.wallet.api.TransactionResult;
//
//public class TrxDemo{
//  public static void main(String[] args) throws Exception{
// TronKit kit = new TronKit(
//     TronApi.testNet(),
//      Credential.fromPrivateKey("8D9142B97B38F992B4ADF9FB3D0DD527B1F47BE113C6D0B5C32A0571EF1E7B5F")
//    );
//
//    String toAddress = "TL8G6LwoehQKjqoqy7Ej5BLvTQHpdimds1";
//    long amount = 150;
//
//    System.out.println("get trx balance before transfer...");
//    long b1 = kit.getTrxBalance(toAddress);
//    System.out.printf("balance: %d\n",b1);
//
//    System.out.println("transfer trx...");
//    TransactionResult ret = kit.sendTrx(toAddress,amount);
//    System.out.printf("transfer result: %s\n",ret);
//
//    System.out.println("get trx balance after transfer...");
//    long b2 = kit.getTrxBalance(toAddress);
//    System.out.printf("balance: %d\n",b2);
//  }
//}